<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="__HUI__/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="__HUIADMIN__/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__HUIADMIN__/skin/blue/skin.css" id="blue" />
<link rel="stylesheet" type="text/css" href="__HUIADMIN__/common.css" />
<script src="__SFDP__/lib/jquery-1.12.4.js"></script>
<script src="__SFDP__/lib/layer/2.4/layer.js"></script>
<script src="__SFDP__/js/sfdp.fun.js"></script>

<script type="text/javascript" src="__HUI__/js/H-ui.min.js"></script>
<script type="text/javascript" src="__HUIADMIN__/js/H-ui.admin.js"></script>
<title>Sfdp</title>
</head>
<body>
<div class="page-container">

    <div class="cl pd-5 bk-gray">
        <span class="l">
           <a onClick='commonfun.Askshow("{:url("/index/sfdp/create")}","是否创建新版本？")' class="btn btn-primary radius">创建</a>
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{:count($list)}</strong> 条
        </span>
    </div>
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr class="text-c">
				<th width="25">编码</th>
				<th width="50">标题</th>
				<th width="150">发布时间</th>
				<th width="50">启用状态</th>
				<th width="150">锁定状态</th>
				<th width="200">操作</th>
			</tr>
		</thead>
		<tbody>
			{volist name='list' id='k'}
			<tr class="text-c">
				<td>{$k.s_bill}</td>
				<td>{$k.s_title}</td>
				<td>{$k.add_time|date='Y-m-d H:i'}</td>
				<td>{$k.s_design}</td>
				<td>{eq name='k.s_look' value='0'}未锁定{else/}已锁定（{$k.s_db}）{/eq}</td>
				<td class="text-l">
				<div class="btn-group">
					<a onClick="commonfun.openfullpage('设计——{$k.s_bill}','{:url('/index/sfdp/sfdp_desc',['sid'=>$k.id])}')"	class="btn  radius size-S">设计</a>
					<a 
					onClick="commonfun.openfullpage('元素管理——{$k.s_bill}','{:url('/index/sfdp/sfdp_ui',['sid'=>$k.id])}')" class="btn  radius size-S">元素</a>
					{neq name='k.s_field' value='1'}
					<a onClick='commonfun.Askshow("{:url("/index/sfdp/sfdp_fix",["sid"=>$k.id])}","部署后将生成最新版本,确定是否执行?")'  class="btn  radius size-S">部署</a>
					<a onClick="commonfun.openfullpage('脚本管理——{$k.s_bill}','{:url('/index/sfdp/sfdp_script',['sid'=>$k.id])}')"   class="btn  radius size-S">脚本</a>
					{/neq}
					{eq name='k.s_db_bak' value='1'}
					<a onClick='commonfun.Askshow("{:url("/index/sfdp/sfdp_deldb",["sid"=>$k.id])}","删除备份数据库,是否执行?")'  class="btn  radius size-S">DelDb</a>
					{/eq}
					{if condition="count($k.fix) >0"}
					<span   class="btn  radius size-S dropDown">
					<a class="dropDown_A" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">版本管理</a>
					<ul class="dropDown-menu menu radius box-shadow">
						{volist name="$k.fix" id='s'}
							<li><a href="#">{if condition="$s.status eq 1"}✔{/if} {$s.s_bill}</a></li>
						{/volist}
						</ul>
					</span>
					{/if}
					
					
				</div>
				</td>
			</tr>
			{/volist}
		</tbody>
	</table>
</div>
<div class="page-bootstrap">{$list|raw}</div>
</body>
</html>